package com.instreet.idra.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.instreet.idra.dao.IGameDao;
import com.instreet.idra.model.Game;
import com.instreet.idra.service.IGameService;

public class GameServiceImpl implements IGameService{
	@Autowired
	private IGameDao gameDao;
	public void setGameDao(IGameDao gameDao){
		this.gameDao=gameDao;
	}

	public void saveOrUpdate(Game game){
		gameDao.saveOrUpdate(game);
	}
	
	public void delete(Long id){
		gameDao.delete(id);
	}
	
	public Game select(Long id){
		Game game = gameDao.select(id);
		return game;
	}
	
	public List<Game> list(){
		List<Game> game = gameDao.list();
		return game;
	}
}
